/**
 * 
 */
package com.cdhospital.websitecontroller;


import java.util.List;

import com.cdhospital.Model.Friendlink;
import com.cdhospital.websiteservice.FrinkLinkService;
import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;


/**
 * @author Administrator
 *
 */

public class WebsiteIndexController extends Controller {
	static FrinkLinkService service = new FrinkLinkService();
	public void index(){
	List<Record>  friendlinks=Db.findByCache("zone", "frindlink", "select * from friendlink order by flag asc");
	setAttr("firendlink", friendlinks);
	render("index.html");
	}

}
